ALL : bubby_sort insertion_sort selection_sort

insertion_sort : insertion_sort.o basic_fun.o
	gcc -o insertion_sort insertion_sort.o basic_fun.o
insertion_sort.o : insertion_sort.c basic_fun.h
	gcc -ggdb -c insertion_sort.c
basic_fun.o : basic_fun.c basic_fun.h
	gcc -ggdb -c basic_fun.c

bubby_sort : bubby_sort.o basic_fun.o
	gcc -o bubby_sort bubby_sort.o basic_fun.o
bubby_sort.o : bubby_sort.c basic_fun.h
	gcc -ggdb -c bubby_sort.c

selection_sort : selection_sort.o basic_fun.o
	gcc -o selection_sort selection_sort.o basic_fun.o
selection_sort.o : selection_sort.c basic_fun.h
	gcc -ggdb -c selection_sort.c

clean:
	rm insertion_sort insertion_sort.o basic_fun.o\
		bubby_sort.o selection_sort.o


